﻿
@{
    ViewBag.Title = "Registration";
    Layout = "~/Views/Shared/_LayoutLandRHome.cshtml";
}
@* 表单插件验证 *@
<script src="~/LandR/js/jquery-1.8.3.min.js"></script>
<script src="~/LandR/js/jquery.validate.js"></script>
<script src="~/LandR/js/jquery.metadata.js"></script>
<script src="~/LandR/js/jquery.validate.messages_cn.js"></script>
<script>
    $(function () {
        $("form").validate({
            rules: {
                Name: { required: true },
                Phone: { required: true },
                Password: { required: true },
                Password1: { required: true, equalTo: "#Password" },
                shebox: { required: true },
            },
            messages: {
                Name: { required: "请输入用户昵称" },
                Phone: { required: "请输入手机号"},
                Password: { required: "请输入密码" },
                Password1: { required: "请输入密码", equalTo: "两次输入密码不一致" },
                shebox: { required: "请勾选协议" },
            }
        })
    })
</script>
@* 基本布局 *@
<link href="~/LandR/css/grid.css" rel="stylesheet" />
<link href="~/LandR/css/LandR.css" rel="stylesheet" />
<title>注册</title>
<div class="neirong grid">
    <div class="kongjian grid-cell-2">
        <form action="" method="post">
            <div class="kjwenzhi">
                <div class="kjtitle">
                    用户注册
                </div>
                @using (Html.BeginForm("Registration", "LandR", FormMethod.Post))
                {
                    <div class="kjB">
                        昵&nbsp;&nbsp;&nbsp;称：@Html.TextBox("Name")
                        @Html.ValidationMessage("Name")
                    </div>
                    <div class="kjB">
                        手机号：@Html.TextBox("Phone")
                        @Html.ValidationMessage("Phone")
                    </div>
                    <div class="kjB">
                        密&nbsp;&nbsp;&nbsp;码：@Html.Password("Password")
                    </div>
                    <div class="kjB">
                        确认密码：@Html.Password("Password1")
                    </div>
                    <div class="kjB">
                        <a href="#">《房地产中介管理系统协议》</a>  @Html.CheckBox("shebox")
                    </div>
                    <div class="kjB">
                        <input type="submit" name="btmdl" value=" 立即注册" />
                    </div>
                }
            </div>
        </form>
    </div>
    <div class="tishi grid-cell-1">
        <div class="tishititleA">友情提示</div>
        <div class="tishititleB">1.保存您的个人资料</div>
        <div class="tishititleB">2.收藏您关注的商品</div>
        <div class="tishititleB">2.订阅本店商品信息</div>
        <div class="tishititleB">2.本网站受法律保护</div>
    </div>
</div>
